package com.yehun.admin.controller;

import com.yehun.shiro.ShiroUser;
import org.apache.shiro.SecurityUtils;

public class BaseController {

    /**
     * 获取当前登录用户对象
     */
    protected ShiroUser getCurrentUser() {
        return (ShiroUser) SecurityUtils.getSubject().getPrincipal();
    }

    
}
